<template>
  <div>
    <TabMenu v-if="useTabMenuFlag" :tab-list="tabList" />
    <router-view />
  </div>
</template>
<script>
  import TabMenu from "@/components/layout/components/tabMenu.vue";
  export default {
    components: {
      TabMenu
    },
    computed:{
      useTabMenuFlag() {
        const pathArr = [
          "/wintessquery/trajectoryDetail",
          "/wintessquery/wangerDetail",
          "/wintessquery/trajectoryPerDetail",
          "/wintessquery/trajectoryXmDetail"
        ]; // 不需要公共面包屑组件的数组
        return pathArr.indexOf(this.$route.path) === -1;
      }
    },
    data() {
      return {
        activeName: "wintessquery",
        tabList: [
          {
            name: "viewPer",
            path: "/wintessquery/viewPer",
            title: "人员视角",
          },
          {
            name: "viewXm",
            path: "/wintessquery/viewXm",
            title: "项目视角",
          },
          {
            name: "nowTrajectory",
            path: "/wintessquery/nowTrajectory",
            title: "今日项目",
            isNoShow:true
          },
          {
            name: "staffTrajectory",
            path: "/wintessquery/staffTrajectory",
            title: "工作人员轨迹",
            isNoShow:true
          },
          {
            name: "trajectoryPerDetail",
            path: "/wintessquery/trajectoryPerDetail",
            title: "人员轨迹查询",
            isNoShow:true
            
          },
          {
            name: "trajectoryXmDetail",
            path: "/wintessquery/trajectoryXmDetail",
            title: "项目轨迹查询",
            isNoShow:true
          },
          {
            name: "wangerDetail",
            path: "/wintessquery/wangerDetail",
            title: "轨迹查询",
            isNoShow:true
            
          },
          
         
        ]
      };
    }
  };
</script>
<style></style>
